'''
# -*- coding:utf-8 -*-
# @Project: DevOps_api
# @Date: 2023/3/20 - 21:47
# @Author: ysg
# @Describe: 

dl_mysql.py
'''
import os
import pymysql

username = os.environ.get('DEVOPS_USER')
password = os.environ.get('DEVOPS_PAWD')


def get_dl_mysql():
    conn = pymysql.connect(host='devops_mysql',
                           port=3306,
                           # user=settings.username,
                           user='devops',
                           # password=settings.password,
                           password='devops123?',
                           database='DevOps',
                           charset='utf8')
    cursor = conn.cursor()
    return conn, cursor
